package demo;
import java.util.Arrays;

public class T2 {
	
	public static void main(String[] args) {
		
		String s = "1|2|3";
		
		String[] split = s.split("\\|");
		System.out.println(Arrays.toString(split));
		
		
	}

}
